package com.itheima.mapper;

import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;


@Mapper
public interface StudentMapper {
    List<Student> page(StudentQueryParam studentQueryParam);

    void add(Student student);

    @Select("select * from student where id = #{id}")
    Student selectById(Integer id);

    void update(Student student);

    void delete(List<Integer> ids);

    @MapKey("number")
    List<Map<String, Object>> countStudentDegreeData();

    List<Map<String, Object>> getStudentCountOption();
}
